package com.lpwa.system.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.lpwa.common.core.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 标签数据表 sys_tag_data
 * 
 * @author tanmu
 * @date 2019-06-20
 */
public class TagData extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** ID */
	private Long id;
	/** 标签ID */
	private String tagId;
	/** 数据产生时间 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date lastPacketTS;
	/** 位置信息时间 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date positionTS;
	/** X */
	private BigDecimal x;
	/** Y */
	private BigDecimal y;
	/** Z */
	private BigDecimal z;
	/** 电池电量 */
	private BigDecimal batteryVoltage;
	/** 电池电量对应的时间 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date batteryVoltageTS;
	/** 信号强度 */
	private Integer rssi;
	/** 采集信号强度的对应基站ID */
	private String rssiLocator;
	/** 报警状态 */
	private String status;
	/** 传感类型 */
	private String sensorType;
	/** 传感值 */
	private Integer sensorData;
	/** 用户ID */
	private String personId;
	//表名
	private String tableName;
	private String sql;
	private Integer start;
	private Integer end;
	//小时分区用
	private Integer partition;
	private String beginTime;
	private String endTime;
	//当前表索引
	private Integer index;

	//表行总数
	private Integer pageSize;

	//当前页
	private Integer nowPage;

	public Integer getIndex() {
		return index;
	}

	public void setIndex(Integer index) {
		this.index = index;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

	public Integer getNowPage() {
		return nowPage;
	}

	public void setNowPage(Integer nowPage) {
		this.nowPage = nowPage;
	}

	public String getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(String beginTime) {
		this.beginTime = beginTime;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

	public Integer getPartition() {
		return partition;
	}

	public void setPartition(Integer partition) {
		this.partition = partition;
	}

	public Integer getStart() {
		return start;
	}

	public void setStart(Integer start) {
		this.start = start;
	}

	public Integer getEnd() {
		return end;
	}

	public void setEnd(Integer end) {
		this.end = end;
	}

	public Date getPositionTS() {
		return positionTS;
	}

	public void setPositionTS(Date positionTS) {
		this.positionTS = positionTS;
	}

	public String getSql() {
		return sql;
	}

	public void setSql(String sql) {
		this.sql = sql;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public void setId(Long id)
	{
		this.id = id;
	}

	public Long getId() 
	{
		return id;
	}
	public void setTagId(String tagId) 
	{
		this.tagId = tagId;
	}

	public String getTagId() 
	{
		return tagId;
	}
	public void setLastPacketTS(Date lastPacketTS) 
	{
		this.lastPacketTS = lastPacketTS;
	}

	public Date getLastPacketTS() 
	{
		return lastPacketTS;
	}
	public void setX(BigDecimal x) 
	{
		this.x = x;
	}

	public BigDecimal getX() 
	{
		return x;
	}
	public void setY(BigDecimal y) 
	{
		this.y = y;
	}

	public BigDecimal getY() 
	{
		return y;
	}
	public void setZ(BigDecimal z) 
	{
		this.z = z;
	}

	public BigDecimal getZ() 
	{
		return z;
	}
	public void setBatteryVoltage(BigDecimal batteryVoltage) 
	{
		this.batteryVoltage = batteryVoltage;
	}

	public BigDecimal getBatteryVoltage() 
	{
		return batteryVoltage;
	}
	public void setBatteryVoltageTS(Date batteryVoltageTS) 
	{
		this.batteryVoltageTS = batteryVoltageTS;
	}

	public Date getBatteryVoltageTS() 
	{
		return batteryVoltageTS;
	}
	public void setRssi(Integer rssi) 
	{
		this.rssi = rssi;
	}

	public Integer getRssi() 
	{
		return rssi;
	}
	public void setRssiLocator(String rssiLocator) 
	{
		this.rssiLocator = rssiLocator;
	}

	public String getRssiLocator() 
	{
		return rssiLocator;
	}
	public void setStatus(String status) 
	{
		this.status = status;
	}

	public String getStatus() 
	{
		return status;
	}

	public String getSensorType() {
		return sensorType;
	}

	public void setSensorType(String sensorType) {
		this.sensorType = sensorType;
	}

	public void setSensorData(Integer sensorData)
	{
		this.sensorData = sensorData;
	}

	public Integer getSensorData() 
	{
		return sensorData;
	}

	public String getPersonId() {
		return personId;
	}

	public void setPersonId(String personId) {
		this.personId = personId;
	}

//	public String toString() {
//        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
//            .append("id", getId())
//            .append("tagId", getTagId())
//            .append("lastPacketTS", getLastPacketTS())
//            .append("x", getX())
//            .append("y", getY())
//            .append("z", getZ())
//            .append("batteryVoltage", getBatteryVoltage())
//            .append("batteryVoltageTS", getBatteryVoltageTS())
//            .append("rssi", getRssi())
//            .append("rssiLocator", getRssiLocator())
//            .append("status", getStatus())
//            .append("sensorType", getSensorType())
//            .append("sensorData", getSensorData())
//            .append("userId", getPersonId())
//            .append("createTime", getCreateTime())
//            .toString();
//    }

}
